package com.guguskins.back.entity.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author duttonliu
 * @date 2021/6/24 11:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
public class SaveCategoryBo {

    /**
     * 主键
     */
    private Integer categoryId;

    /**
     * 分类名称
     */
    @NotEmpty(message = "分类名不能为空")
    private String categoryName;

    /**
     * 0 下架 1 上架
     */
    @NotNull(message = "上下架状态不能为空")
    private Integer categoryState;

    /**
     * 排序
     */
    private Integer categorySort;

}
